import request from '@/utils/request';

export async function getBopTotalByPage (params: any) {
    return request('/api/design/getBopTotalByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addBopTotal (params: any) {
    return request('/api/design/addBopTotal', {
    method: 'POST',
    data: params,
  });
}

export async function updateBopTotal (params: any) {
    return request('/api/design/updateBopTotal', {
    method: 'POST',
    data: params,
  });
}

export async function delBopTotal (params: any) {
    return request('/api/design/delBopTotal', {
    method: 'POST',
    data: params,
  });
}


export async function exportBopTotal(params: any) {
    return request('/api/design/exportBopTotal', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getBopTotalByPage, addBopTotal, updateBopTotal, delBopTotal, exportBopTotal }
